package cn.janyd;

import cn.janyd.config.AppConfig;
import cn.janyd.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author a3139
 * @since 2020-01-07 9:36
 */
public class Application {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

		UserService userService = context.getBean(UserService.class);
		System.out.println(userService);
	}
}
